This module contains some wrappers for using XTB to perform calculations.
- class XTBCalculator(omp='1', dry_run=False, skip=False, verbose=True)
A calculator which can drive simulations using the XTB program.
XTB uses a mixed approach for control. First, you can pass command line arguments to the program. Second, you can modify the input file. We mirror this split here. Command line arguments can be passed as arguments to the run command. To modify the input file, the run command accepts an argument inp which is a dictionary. This dictionary is written to the input file (in the appropriate format). See the example for more details.
- os = <module 'os' from '/usr/local/anaconda/lib/python3.7/os.py'>
Process local run dictionary to create the input directory and identify the command to be passed
Run the xtb executable.
- class XTBLogfile(sys, logname, opt=False, md=False)
This class stores the results of an XTB calculation which might be later post-processed.
- property energy
The total energy of the system.
- property gradient_norm
The total gradient of the system.
- property homo_lumo_gap
The homo lumo gap of the system.
- property gfnff_qest
When using the GFNFF option, no charges are computed. Instead, there are estimated charges when the topology is generated. This will extract those values.
- xtb_equilibrate(sys, calc, prod_time=20, **kwargs)
This function will automate the process of taking a system from zero temperature up to room temperature (298.15 kelvin).
This routine will work by performing 10ps simulations at temperatures from 0 to 298.15 kelvin, with each simulation spaced by 10 degrees (310 ps total). Finally, the production run can be performed.
a list of positions along the trajectory and a list of energy values.
- Return type